import {
login//登陆
} from '../api/api.js'

const login=(parmas)=> {
    return new Promise((resolve, reject) => {
        login(parmas).then(res => {
            const [err, data] = res;
            console.log(res, 230)
            if (err) {
                reject(err)
            }
            resolve(data)
        })
    })
}
export default login